from django.db import models

# Create your models here.
class Todos(models.Model):
    who = models.CharField(max_length=200)
    things= models.TextField(max_length=200)
#    0, 1, 2, 3, 5, 8, 13, 20, 40, and 100. http://www.planningpoker.com/detail.html
    PRIORITY_CHOICES = (
        ('0', '0'),
        ('1', '1'),
        ('2', '2'),
        ('3', '3'),
        ('5', '5'),
        ('8', '8'),
        ('13', '13'),
        ('20', '20'),
        ('40', '40'),
        ('100', '100'),
    )
    priority = models.CharField(max_length=1, choices=PRIORITY_CHOICES)
    date = models.DateTimeField()
    done = models.BooleanField()
    
    def __unicode__(self):
        self.things